Fix MS-Windows build following revision 110972.
authorEli Zaretskii <eliz@gnu.org>
Thu, 22 Nov 2012 03:56:38 +0000 (05:56 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 22 Nov 2012 03:56:38 +0000 (05:56 +0200)
 src/w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
 with Windows system header.

src/ChangeLog
src/w32.c

index 71a0a2bee0fbe6ae4c3216537d80740e3ae95467..42c1485463b65c925a9fcaa3a65810d033dc4b8d 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-22  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (getcwd): Fix the 2nd argument type, to prevent conflicts
+       with Windows system header.
+
 2012-11-21  Paul Eggert  <eggert@cs.ucla.edu>
 
        Assume POSIX 1003.1-1988 or later for unistd.h (Bug#12945).
index da778eb85415ff37114fb89065cdf3fce99c05b7..038a442f52989aa8efa338a06d2a612b61787a08 100644 (file)
--- a/src/w32.c
+++ b/src/w32.c
@@ -908,7 +908,7 @@ static char startup_dir[MAXPATHLEN];
 
 /* Get the current working directory.  */
 char *
-getcwd (char *dir, size_t dirsize)
+getcwd (char *dir, int dirsize)
 {
   if (!dirsize)
     {